var e = getApp();

Page({
    data: {
        language: ""
    },
    onLoad: function(e) {
        this.getdata();
    },
    gotoMyVolume: function(e) {
        wx.navigateTo({
            url: "/packageC/entry_orders/my_volume/my_volume"
        });
    },
    gotoWholesaleVolume: function(e) {
        wx.navigateTo({
            url: "/packageC/entry_orders/wholesale_volume/wholesale_volume"
        });
    },
    gotoMoneyDetail: function(e) {
        wx.navigateTo({
            url: "/packageC/entry_orders/money_detail/money_detail"
        });
    },
    onReady: function() {
        var e = wx.getStorageSync("langIndex");
        this.setData({
            language: e.en
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var n = this, o = e.getNetAddresss("plugin.pending-order.frontend.pending-order.index");
        e._getNetWork({
            url: o,
            success: function(e) {
                var o = e.data;
                console.log(o), n.setData({
                    userInfo: o.data
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    }
});